Skip to content

Conversation

@azimsh3r
Copy link

This is needed for PyCharm, where the dataclass field-order diagnostic can be emitted in the inverse form depending on
analysis order.
The change makes the typing conformance test robust to both equivalent warnings.

@python-cla-bot
Copy link

python-cla-bot bot commented Jan 19, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@srittau srittau added the topic: conformance tests Issues with the conformance test suite label Jan 19, 2026
Extend PyTypingConformanceTest to allow the alternative diagnostic
emitted when a dataclass field with a default precedes a field
without a default.

Both messages represent the same semantic error but differ in
field-order phrasing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: conformance tests Issues with the conformance test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants